package com.txf.coomon.mvp.net_retrofit.model;

import android.content.Context;

import com.txf.coomon.mvp.net_retrofit.base.BaseAppModel;
import com.txf.coomon.net.net_retrofit.listener.AppRequestListener;
import com.txf.coomon.net.net_retrofit.AppRequestProvide;

import java.util.HashMap;

import io.reactivex.ObservableTransformer;

/**
 * @author txf
 * @create 2019/1/29 0029
 * @
 */

public class DemoModel<T> extends BaseAppModel<T> {
    public void getData(Context context, HashMap<String, Object> maps, boolean isDialog, boolean cancelable,
                        ObservableTransformer<T, T> transformer, AppRequestListener<T> responseListener) {
        subscribe(context,AppRequestProvide.getHttpApiService().login(maps), responseListener, transformer, isDialog, cancelable);
    }

}
